cmake_minimum_required(VERSION 3.10)

project(Sysx)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

file(GLOB sysx_src *.cpp)
add_library(sysx ${sysx_src})

if(UNIX)
include_directories(${GTK3_INCLUDE_DIRS})

find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0 )


target_link_libraries(sysx ${GTK3_LIBRARIES}  glfw3 pthread GL dl)
target_compile_options(sysx PRIVATE ${GTK3_CFLAGS_OTHER} )

endif()